<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>加减计数器</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f0f0f0;
            font-family: Arial, sans-serif;
        }
        .counter-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .counter-container button {
            padding: 10px 20px;
            font-size: 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            background-color: #007bff;
            color: #fff;
        }
        .counter-container button:hover {
            background-color: #0056b3;
        }
        .counter-container span {
            font-size: 24px;
            font-weight: bold;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="counter-container" id='app'>
        <button @click="count--" id="decrement-btn">-</button>
        <span id="counter-value">{{count}}</span>
        <button @click="count++" id="increment-btn">+</button>
    </div>
	<script src="js/vue.js"></script>
	<script>
		Vue.createApp({
			data(){
				return{
					count:0
				}
			}
		}).mount('#app')
	</script>
</body>
</html>